package com.example.service;

import com.example.pojo.User;
import com.example.pojo.dto.UserDto;


public interface IUserService {
    /**
     * 插入用户
     *
     * @param User
     */
    public User add(UserDto user);

    /**
     * 查询用户
     *
     * @param userId
     *
     */
    public User getUser(Integer userId);

    /**
     *
     * 编辑用户
     *
     * @param UserDto
     *
     */
    public User edit(UserDto user);


    /**
     *
     * 删除用户
     *
     * @param UserDto
     *
     */
    public void delete(Integer id);
}
